package ui.View;

import org.uqbar.arena.actions.MessageSend;
import org.uqbar.arena.layout.HorizontalLayout;
import org.uqbar.arena.layout.VerticalLayout;
import org.uqbar.arena.widgets.Button;
import org.uqbar.arena.widgets.Label;
import org.uqbar.arena.widgets.Panel;
import org.uqbar.arena.windows.WindowOwner;

import ui.modelApplication.ApplicationBuscador;
import ui.modelApplication.ModelAsiento;

public class SobrereservaWindow extends InformacionWindow
{

	public SobrereservaWindow(WindowOwner parent, ApplicationBuscador buscadorApp)
	{
		super(parent,buscadorApp);
	}

	@Override
	protected void addActions(Panel actionsPanel) 
	{
		actionsPanel.setLayout(new VerticalLayout());
		
		Label preguntaLabel = new Label(actionsPanel);
		preguntaLabel.setText("¿Qué desea hacer?");
		
		Panel botonesPanel = new Panel(actionsPanel);
		botonesPanel.setLayout(new HorizontalLayout());
				
		Button sobrereservarBoton = new Button(botonesPanel);
		sobrereservarBoton.setCaption("Sobrereservar");
		sobrereservarBoton.onClick(new MessageSend(this.getModelObject(), "sobreReservar" ));
		sobrereservarBoton.onClick(new MessageSend(this, "close"));
		
		Button seguirBoton = new Button(botonesPanel);
		seguirBoton.setCaption("Aceptar");
		seguirBoton.onClick(new MessageSend(this, "close")); //TODO implementar la verdadera accion
		
	}

	@Override
	protected void createFormPanel(Panel mainPanel) {}

}
